<h1>Editing filter</h1>

<%= error_messages_for :filter %>

<% form_for(:filter, :url => filter_path(@filter), :html => { :method => :put }) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Body</b><br />
    <%= f.text_area :body %>
  </p>

  <p>
    <b>Screenshot</b><br />
    <%= f.text_field :screenshot %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', filter_path(@filter) %> |
<%= link_to 'Back', filters_path %>